import java.util.Scanner;

/**
   Reads a string, reverses the order the characters within the
   string, and prints out the result.
   Input: the value of s, a string
   Output: the string reversed
*/
public class ReverseString
{
    public static String reverse(String str){
        return new StringBuffer(str).reverse().toString();
    }
   public static void main(String[] args)
   {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        String reversed;
        reversed = reverse(s);
        System.out.println(reversed);
   }
}
